package com.qdlc.p2p.common.constant;

public enum RechargeStatus {
	
	//系统会异步通知
	SUCCESS("成功"),
	
	//系统会异步通知
	FAILED("失败"),
	
	//系统不会异步通知
	PROCESSING("处理中");

	String statusName;
	
	private RechargeStatus(String statusName) {
		this.statusName = statusName;
	}
	
	public static RechargeStatus getStatus(String status){
		for(RechargeStatus entry: RechargeStatus.values()){
			if(entry.name().equalsIgnoreCase(status)){
				return entry;
			}
		}
		return FAILED;
	}
	
	public String getStatus(){
		return name();
	}
	
}
